package cn.imvc.app.repositories;

import java.util.List;

import org.springframework.data.jpa.repository.JpaRepository;

import cn.imvc.app.entities.GoodsSku;
import cn.imvc.data.jpa.repository.ISqlExecutor;

public interface GoodsSkuRepository extends JpaRepository<GoodsSku, Integer>,ISqlExecutor<Object> {

	List<GoodsSku> findByGoodsId(Integer goodsId);
	
	List<GoodsSku> findByGoodsIdAndState(Integer goodsId,Byte state);
	List<GoodsSku> findByGoodsIdAndStateIn(Integer goodsId,Byte[] state);

	List<GoodsSku> findByIdIn(int[] array);
}
